import requests
from bs4 import BeautifulSoup

# 发送 HTTP 请求
url = 'https://www.cnblogs.com'
response = requests.get(url)

# 解析 HTML 内容
soup = BeautifulSoup(response.text, 'html.parser')

# 获取网页标题
title = soup.title.string

print(f"网页标题是: {title}")
print(f"网页text是: {soup.get_text()}")